import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import { getAreaAPI } from './api'
import { Swipe, SwipeItem, Col, Row, Picker, DropdownMenu, DropdownItem, List, Tag, Card, NavBar, Form, Field, Button, Tabbar, TabbarItem, Grid, GridItem, Search, icon, IndexBar, IndexAnchor, Cell, CellGroup } from 'vant'
// 引入移动端适配插件
import 'amfe-flexible'

Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Col)
Vue.use(Row)
Vue.use(Picker)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(List)
Vue.use(Tag)
Vue.use(Card)
Vue.use(icon)
Vue.use(Search)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Button)
Vue.use(Button)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
// const myFn = async () => {
//   try {
//     console.log(1)
//     const res = await getAreaAPI()
//     console.log(res)
//   } catch (err) {
//     console.dir(err)
//   }
// }
// myFn()
